<?php
 /**
 * Example Application

 * @package Example-application
 */

require 'config.php';

$smarty = new Smarty;
$result = mysql_query("select * from article where cid=7");
$row = mysql_fetch_array($result);
$smarty->assign('row',$row);
$smarty->assign('title','关于博主');


$smarty->force_compile = true;
//$smarty->debugging = true;
$smarty->caching = true;
$smarty->cache_lifetime = 120;
$smarty->display('article.tpl');
?>
